avalon.component('ms-footer',{
	template:require('./footer.html'),
	defaults:{
		user:{},
		setting:{},
		onInit:function(){
			var that = this
			window.duxStore.subscribe(function(){
				// console.log(window.duxStore.getState())
				if(that.user.name!=window.duxStore.getState().user.name&&window.duxStore.getState().user.name=='setting'){
					that.user = window.duxStore.getState().user
					that.setting = avalon.vmodels['home-header'].setting
					avalon.log(that.setting,'zzzzzfff')
				}
			})
		}
	}
})